#ifndef EXPLOSION_H
#define EXPLOSION_H

#include <QObject>
#include <QPixmap>
#include <QList>

class Explosion : public QObject
{
    Q_OBJECT
public:
    explicit Explosion(QObject *parent = nullptr);

    void loadFrames(const QStringList &framePaths);
    void play();
    QPixmap currentPixmap();
    bool isFinished();
    void update();

    QList<QPixmap> frames;
    int currentFrame;
    bool isPlaying;
};

#endif // EXPLOSION_H
